import cart from "@/store/modules/cart"
import checkout from "@/store/modules/checkout"
import { State } from "@/store/root"
import Vue from "vue"
import Vuex from "vuex"
import createLogger from "vuex/dist/logger"

Vue.use(Vuex)

const state = () => new State()

export default new Vuex.Store<State>({
  state,
  mutations: {},
  actions: {},
  modules: {
    cart,
    checkout,
  },
  plugins: [createLogger()],
})
